package com.tjsinfo.tjsoa.workplan.dao;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.tjsinfo.tjsoa.workplan.sqlmap.WorkPlanDefine;

public class IbatisWorkPlanDefineDao extends  SqlMapClientDaoSupport implements IibatisWorkPlanDefineDao{

	/**
	 * 批量添加数据
	 * @param list
	 */
	/*public void addDefintlist(final List list )
	{
		this.getSqlMapClientTemplate().execute(new SqlMapClientCallback()
		{

			public Object doInSqlMapClient(SqlMapExecutor execute)
					throws SQLException {
				// TODO Auto-generated method stub
				execute.startBatch();
				for (Iterator iterator = list.iterator(); iterator.hasNext();) {
					WorkPlanDefine workPlanDefine = (WorkPlanDefine) iterator.next();
					execute.insert("workplandefine.insertWorkPlanDefine",workPlanDefine);
				}
				execute.executeBatch();
				return null;
			}
			
		}
		);
	}*/

	public void delDefintlist(WorkPlanDefine workPlanDefine) {
		// TODO Auto-generated method stub
		this.getSqlMapClientTemplate().delete("workplandefine.deleteWorkPlanDefineAndType", workPlanDefine); 
	}
	
}
